package service;

import java.util.ArrayList;

import model.Mission;


public class MissionService {
	
	static int refMission = 005;
	static ArrayList<Mission> listeMission = new ArrayList<Mission>();
	
	public static ArrayList<Mission> listeMission()
	{	
		//(String refMission, String nomClient, String nomConsultant,String dateDebut, String dateFin, String statut)
		listeMission.add(new Mission("12359","Airbus","Eric","24/01/2013","ND","En cours"));
		listeMission.add(new Mission("56442","Airbus","Thomas","21/10/2012","10/12/2012","Terminée"));
		listeMission.add(new Mission("67663","Conseil Général","15/02/2013","ND","ND","Non affectée"));
		listeMission.add(new Mission("14946","Logica","Sophie","01/02/2013","ND", "En cours"));		
		return listeMission;		
	}
	
	public void CreerMission(String nomClient, String dateDebut)
	{
		listeMission.add(new Mission(String.valueOf(refMission),nomClient,"20/02/2013","ND","ND","Non Affectée"));
		refMission++;
	}
}
